from django.conf.urls import patterns, include, url
from django.contrib.auth.views import login, logout


from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'peliculas.views.index', name='index'),
    url(r'^$', 'peliculas.views.monster', name='monster'),
    url(r'^monster/busqueda/$', 'peliculas.views.busqueda', name='busqueda'),
    url(r'^monster/categoria/(?P<idGenre>\d+)', 'peliculas.views.categoria', name='categoria'),
	url(r'^monster/infoPeli/(?P<idPeli>.+)', 'peliculas.views.infoPeli', name='infoPeli'),

    url(r'^admin/', include(admin.site.urls)),

    url(r'^main/$', 'LoginApp.views.main', name='main'),
    url(r'^signup/$', 'LoginApp.views.signup', name='signup'),
    url(r'^login/$', login, {'template_name': 'login.html', }, name="login"),
    url(r'^home/$', 'LoginApp.views.home', name='home'),
    url(r'^logout/$', logout, {'template_name': 'main.html', }, name="logout"),
    url(r'^ingreso/$', 'LoginApp.views.ingreso', name='ingreso'),
	
    url(r'^fer/index/$', 'fer.views.monster', name='monster2'),
    url(r'^fer/movie/(?P<idMovie>\d+)', 'fer.views.movie', name='movie'),
    url(r'^fer/movies/genre/(?P<idGenre>\d+)', 'fer.views.genreMovies', name='genreMovies'),
    url(r'^fer/movies/$', 'fer.views.movies', name='movies'),
    url(r'^fer/login/$', 'fer.views.login', name='loginfer'),
)
